package org.wanda.pv.model.business;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.nutz.dao.entity.annotation.*;
import org.wanda.pv.framework.base.BaseModel;

/**
 * @author lxy
 * @date 2018/12/18 10:11
 */


@Table("wd_re_mark_hy_drawing")
@Comment("图纸与标注的关联表(版本控制)")
public class MarkFileRe extends BaseModel {
    @Column
    @Id
    @Prev(els = {@EL("$me.idGen()")})
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Column("mark_id")
    @Comment("标注ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long markId;

    @Column("hy_drawing_id")
    @Comment("文件ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long drawingId;

    @Comment("是否为当前标注")
    @Column("is_current_version")
    private boolean isCurrentVersion;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMarkId() {
        return markId;
    }

    public void setMarkId(Long markId) {
        this.markId = markId;
    }

    public Long getDrawingId() {
        return drawingId;
    }

    public void setDrawingId(Long drawingId) {
        this.drawingId = drawingId;
    }

    public boolean isCurrentVersion() {
        return isCurrentVersion;
    }

    public void setCurrentVersion(boolean currentVersion) {
        isCurrentVersion = currentVersion;
    }


}
